package com.punai.customer.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punai.customer.domain.CusSubpkChapter;
import org.apache.ibatis.annotations.Param;

/**
 * 工序费用项章节Mapper接口
 *
 * @author zxw
 * @date 2022-12-04
 */
public interface CusSubpkChapterMapper extends BaseMapper<CusSubpkChapter>
{
    /**
     * 查询工序费用项章节
     *
     * @param id 工序费用项章节主键
     * @return 工序费用项章节
     */
    public CusSubpkChapter selectCusSubpkChapterById(String id);

    /**
     * 查询工序费用项章节列表
     *
     * @param cusSubpkChapter 工序费用项章节
     * @return 工序费用项章节集合
     */
    public List<CusSubpkChapter> selectCusSubpkChapterList(CusSubpkChapter cusSubpkChapter);


    /**
     * 删除工序费用项章节
     *
     * @param id 工序费用项章节主键
     * @return 结果
     */
    public int deleteCusSubpkChapterById(String id);

    /**
     * 批量删除工序费用项章节
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCusSubpkChapterByIds(String[] ids);

    List<CusSubpkChapter> getChildrenById(@Param("chapterId") String chapterId, @Param("companyId") Long companyId);
}
